package com.niit.agricstore.rabbitmq.simple;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
public class QueueConfig {
    //注册队列
    @Bean
    public Queue getSimpleQueue(){
        return new Queue("simple-queue-1");
    }
}
